package com.china.lottery.listener.dao.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * lChannelSmgTournamentbak entity. @author XIAOX
 */
@Entity
@Table(name = "L_CHANNEL_SMG_TOURNAMENT_BAK")
public class lChannelSmgTournamentbak implements java.io.Serializable {



	private static final long serialVersionUID = 1L;

	
	public lChannelSmgTournamentbak() {
	}
	public lChannelSmgTournamentbak(Long id, String smgDay, String weekId, String teamId, String league, String team,
			String endTime, String matchTime, String flag, String smgType, String gameName,
			String channelCode,Date createTime, Date updateTime,String text1) {
		super();
		this.id = id;
		this.smgDay = smgDay;
		this.weekId = weekId;
		this.teamId = teamId;
		this.league = league;
		this.team = team;
		this.endTime = endTime;
		this.matchTime = matchTime;
		this.flag = flag;
		this.smgType = smgType;
		this.gameName = gameName;
		this.channelCode= channelCode ;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.text1 = text1;
	}
	public lChannelSmgTournamentbak( String smgDay, String weekId, String teamId, String league, String team,
			String endTime, String matchTime, String flag, String smgType, String gameName,
			String channelCode , Date createTime,String text1) {
		this.smgDay = smgDay;
		this.weekId = weekId;
		this.teamId = teamId;
		this.league = league;
		this.team = team;
		this.endTime = endTime;
		this.matchTime = matchTime;
		this.flag = flag;
		this.smgType = smgType;
		this.gameName = gameName;
		this.channelCode= channelCode ;
		this.createTime = createTime;
		this.text1 = text1;
	}
	
	public lChannelSmgTournamentbak( String cancel, String result, String firstHalfResult, String let,String base) {
		this.cancel = cancel;
		this.result = result;
		this.firstHalfResult = firstHalfResult;
		this.let = let;
		this.base = base;
	}

	
	private Long id;
	private String smgDay;
	private String weekId;
	private String teamId;
	private String league;
	private String team;
	private String endTime;
	private String matchTime;
	private String flag;
	private String smgType;
	private String gameName;
	
	private String channelCode;
	
	 private Date createTime;
	 private Date updateTime;
	 
	 private String cancel;
	 private String result;
	 private String firstHalfResult;
	 private String let;
	 private String base;

	private String text1;
	

	
	@Id
	@SequenceGenerator(name="S_CHANNEL_SMG_TOURNAMENT_GENERATOR", sequenceName="S_CHANNEL_SMG_TOURNAMENT",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="S_CHANNEL_SMG_TOURNAMENT_GENERATOR")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "SMG_DAY", length = 10)
	public String getSmgDay() {
		return smgDay;
	}
	public void setSmgDay(String smgDay) {
		this.smgDay = smgDay;
	}
	
	@Column(name = "WEEK_ID", length = 2)
	public String getWeekId() {
		return weekId;
	}
	public void setWeekId(String weekId) {
		this.weekId = weekId;
	}
	
	@Column(name = "TEAM_ID", length = 5)
	public String getTeamId() {
		return teamId;
	}
	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}
	
	@Column(name = "LEAGUE", length = 30)
	public String getLeague() {
		return league;
	}
	public void setLeague(String league) {
		this.league = league;
	}
	
	@Column(name = "TEAM", length = 200)
	public String getTeam() {
		return team;
	}
	public void setTeam(String team) {
		this.team = team;
	}
	
	@Column(name = "ENDT_IME", length = 50)
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	@Column(name = "MATCH_TIME", length = 50)
	public String getMatchTime() {
		return matchTime;
	}
	public void setMatchTime(String matchTime) {
		this.matchTime = matchTime;
	}
	
	@Column(name = "FLAG", length = 1)
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}
	
	@Column(name = "SMG_TYPE", length = 1)
	public String getSmgType() {
		return smgType;
	}
	public void setSmgType(String smgType) {
		this.smgType = smgType;
	}
	
	@Column(name = "GAME_NAME", length = 1000)
	public String getGameName() {
		return gameName;
	}
	public void setGameName(String gameName) {
		this.gameName = gameName;
	}
	
	@Column(name = "CHANNEL_CODE", length = 10)
	public String getChannelCode() {
		return channelCode;
	}
	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}
	
	@Column(name = "CANCEL", length = 1)
	public String getCancel() {
		return cancel;
	}
	public void setCancel(String cancel) {
		this.cancel = cancel;
	}
	
	@Column(name = "RESULT", length = 30)
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	
	@Column(name = "FIRSTHALFRESULT", length = 30)
	public String getFirstHalfResult() {
		return firstHalfResult;
	}
	public void setFirstHalfResult(String firstHalfResult) {
		this.firstHalfResult = firstHalfResult;
	}
	
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
    @Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Column(name = "TEXT1", length = 50)
	public String getText1() {
		return text1;
	}
	public void setText1(String text1) {
		this.text1 = text1;
	}
	
	@Column(name = "LET", length = 30)
	public String getLet() {
		return let;
	}
	public void setLet(String let) {
		this.let = let;
	}
	
	@Column(name = "BASE", length = 30)
	public String getBase() {
		return base;
	}
	public void setBase(String base) {
		this.base = base;
	}
	
	
	@Override
	public String toString() {
		return "lChannelSmgTournamentbak [id=" + id + ", smgDay=" + smgDay + ", weekId=" + weekId + ", teamId=" + teamId
				+ ", league=" + league + ", team=" + team + ", endTime=" + endTime + ", matchTime=" + matchTime
				+ ", flag=" + flag + ", smgType=" + smgType + ", gameName=" + gameName + ", channelCode="+channelCode+", toString()="
				+ super.toString() + "]";
	}

}
